function onEnterMaze(): void
{
	var w = 240*WIN_RATIO;
	var h = 24*WIN_RATIO;
	var x = (WIN_WIDTH-w) / 2;
	var y = (WIN_HEIGHT-h) / 2;
	msg(StringUtils.han2zen("Entering the dungeon"), x, y, w, h);
	Player.setLocation("B1F.map", 0, 0, Direction.SOUTH);
	//Player.setLocation("BGTest.map", 4, 8, Direction.SOUTH);
}

function onEncounter(enemyID, areaName, playingBgmPath): void
{
	playBGM("battle");
	battle(enemyID);
	playBGM(playingBgmPath);
}

function onCamp(areaName): void
{
	var bgm = playBGM("camp");
	SceneManager.camp();
	playBGM(bgm);
}

function onRestartAdventure(mapName, mx, my): void
{
	Player.setLocation(mapName, mx, my);
}

function onOutch()
{
	playSound("outch.wav");
	shake(10);
	Window.alert(StringTable.get("Outch!"));
}

function onCollisionWithInvisibleWall()
{
	playSound("outch.wav");
	shake(10);
	Window.alert(StringTable.get("INVISIBLE WALL"));
}

function onShutter()
{
	playSound("shutter");
	//Window.alert(StringTable.get("SHUTTER"), 2000, true);
	var w = FONT_SIZE * 8;
	msg(StringTable.get("SHUTTER"), (WIN_WIDTH-w)/2, WIN_HEIGHT/2-10, w);
}